using System;

namespace Jink.Protocol.Core.ErrorCodes
{
    [AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = true)]
    public class ErrorCodeAttribute : Attribute
    {
        public ErrorCode ErrorCode { get; private set; }

        public ErrorCodeAttribute(ErrorCode errorCode)
        {
            ErrorCode = errorCode;
        }
    }
}